package com.xiaomi.eco.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaomi.eco.dal.entity.EcoCompanyTaskEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
public interface EcoCompanyTaskEntityMapper extends BaseMapper<EcoCompanyTaskEntity> {
    //获取状态
    List<EcoCompanyTaskEntity> getTaskStatus();

    //更新状态通过id
    void updateTaskStatusByTaskId(@Param("taskId") String taskId,@Param("taskStatus") String taskStatus,@Param("completeTime") long compeleteTime);

    void updateTaskTypeByTaskId(@Param("taskId") String taskId,@Param("taskType") String taskType,@Param("taskTimeP95") String taskTimeP95,@Param("taskTimeP99") String taskTimeP99,@Param("errorNum") int errorNum);

    void updateTaskIdById(@Param("Id") int Id,@Param("taskId") String taskId,@Param("taskUrl") String taskUrl);

}
